export function generateMapByOptions(options) {
  if (!Array.isArray(options))
    return {}
  return options.reduce((json, cur, i) => {
    json[cur.value] = i === 0
    return json
  }, {})
};
